<div class="events view">
<h2><?php  echo __('Event');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($event['Event']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($event['Event']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Start Date'); ?></dt>
		<dd>
			<?php echo h($event['Event']['start_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('End Date'); ?></dt>
		<dd>
			<?php echo h($event['Event']['end_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Checkout'); ?></dt>
		<dd>
			<?php echo h($event['Event']['checkout']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Description'); ?></dt>
		<dd>
			<?php echo h($event['Event']['description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Deleted'); ?></dt>
		<dd>
			<?php echo h($event['Event']['deleted']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
	<h3><?php echo __('Related Characters');?></h3>
	<?php if (!empty($event['Character'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Player Id'); ?></th>
		<th><?php echo __('Chin'); ?></th>
		<th><?php echo __('Xp'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Faction'); ?></th>
		<th><?php echo __('Element'); ?></th>
		<th><?php echo __('Faith'); ?></th>
		<th><?php echo __('Group'); ?></th>
		<th><?php echo __('Status'); ?></th>
		<th><?php echo __('Comments'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($event['Character'] as $character): ?>
		<tr>
			<td><?php echo $character['id'];?></td>
			<td><?php echo $character['player_id'];?></td>
			<td><?php echo $character['chin'];?></td>
			<td><?php echo $character['xp'];?></td>
			<td><?php echo $character['name'];?></td>
			<td><?php echo $character['faction'];?></td>
			<td><?php echo $character['element'];?></td>
			<td><?php echo $character['faith'];?></td>
			<td><?php echo $character['group'];?></td>
			<td><?php echo $character['status'];?></td>
			<td><?php echo $character['comments'];?></td>
			<td><?php echo $character['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'characters', 'action' => 'view', $character['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'characters', 'action' => 'edit', $character['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'characters', 'action' => 'delete', $character['id']), null, __('Are you sure you want to delete # %s?', $character['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Character'), array('controller' => 'characters', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
